/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Persistencia.MySQL;

import Persistencia.IBoletaSenasaDAO;
import Persistencia.DAOFactory;
import Persistencia.IExportadorDAO;
import Persistencia.IImportadorDAO;
import Persistencia.IPagoSenasaDAO;
import Persistencia.IResponsableDAO;
import Persistencia.IResponsableSenasaDAO;
import Persistencia.ISanitarioDAO;
import Persistencia.ITransporteDAO;


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
 *
 * @author zeta
 */
public class MysqlDAOFactory extends DAOFactory{
public static final String DRIVER = "com.mysql.jdbc.Driver";
public static final String DBURL = "jdbc:mysql://localhost:3306/PRUEBA";

public static Connection getConnection() {







    try {
            Class.forName(DRIVER);
             return DriverManager.getConnection(DBURL, "root","31284081");
        } catch (SQLException ex) {
            ex.printStackTrace();
        } catch (ClassNotFoundException ex) {
            ex.printStackTrace();
        }

        return null;


}

    @Override
    public IExportadorDAO getExportadorDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IImportadorDAO getImportadorDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ITransporteDAO getTransporteDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IResponsableDAO getResponsableDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IResponsableSenasaDAO getResponsableSenasaDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    @Override
    public IPagoSenasaDAO getPagoSenasaDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public IBoletaSenasaDAO getBoletaSenasaDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public ISanitarioDAO getSanitarioDAO() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
   

    



}
